package jpg2.jpg2zad2;

/**
 * Autor: Daniel Michalski
 * Data: 05.07.13
 */

public class A {
    public int a = 0;

    public void m() {
        System.out.println("this.a = " + a);
    }
}

class B extends A {
    public int a = 1;

    public void m() {
        System.out.println("this.a = " + a);
    }

    public static void main(String[] args) {
        A x = new B();
        System.out.println("x.a = " + x.a);
        x.m();
    }
}
